Class symantec.itools.awt.util.spinner.HorizontalSpinButtonPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.util.spinner.HorizontalSpinButtonPanel

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----Panel
                           |
                           +----SpinButtonPanel
                                   |
                                   +----symantec.itools.awt.util.spinner.HorizontalSpinButtonPanel

public class HorizontalSpinButtonPanel
extends SpinButtonPanel
This component groups two spin buttons horizontally. It is used for spinners with the ORIENTATION_HORIZONTAL attribute set.

Version:
1.1, August 27, 1997
Author:
Symantec
See Also:
Spinner, Orientation, ORIENTATION_HORIZONTAL

Variable Index

 o heightWidthRatio
The ratio of height to width of the spinner buttons.

Constructor Index

 o symantec.itools.awt.util.spinner.HorizontalSpinButtonPanel()
Constructs the default HorizontalSpinButtonPanel.

Method Index

 o getMinimumSize()
Returns the minimum dimensions to properly display this component.
 o getPreferredSize()
Returns the recommended dimensions to properly display this component.
 o minimumSize()
 o preferredSize()
 o reshape(int, int, int, int)
Moves and/or resizes this component.

Variables

 o heightWidthRatio
protected double heightWidthRatio
The ratio of height to width of the spinner buttons. i.e. height is * width.

Constructors

 o HorizontalSpinButtonPanel
public HorizontalSpinButtonPanel()
Constructs the default HorizontalSpinButtonPanel.

Methods

 o getMinimumSize
public java.awt.Dimension getMinimumSize()
Returns the minimum dimensions to properly display this component. This is a standard Java AWT method which gets called to determine the minimum size of this component. It simply returns the results of a call to preferedSize().

Overrides:
getMinimumSize in class Container
 o getPreferredSize
public java.awt.Dimension getPreferredSize()
Returns the recommended dimensions to properly display this component. This is a standard Java AWT method which gets called to determine the recommended size of this component.

Overrides:
getPreferredSize in class SpinButtonPanel
 o minimumSize
public java.awt.Dimension minimumSize()
Note: minimumSize() is deprecated.

Overrides:
minimumSize in class Container
See Also:
getMinimumSize().
 o preferredSize
public java.awt.Dimension preferredSize()
Note: preferredSize() is deprecated.

Overrides:
preferredSize in class Container
See Also:
getPreferredSize().
 o reshape
public void reshape(int x,
                    int y,
                    int width,
                    int height)
Moves and/or resizes this component. This is a standard Java AWT method which gets called to move and/or resize this component. Components that are in containers with layout managers should not call this method, but rely on the layout manager instead. This method is overridden to reshape the two direction buttons.

Parameters:
x - horizontal position in the parent's coordinate space
y - vertical position in the parent's coordinate space
width - the new width
height - the new height
Overrides:
reshape in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index